package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.Category;
import com.googlecode.flealancemarket.service.commands.GetCategoryWithJobs;
import com.googlecode.flealancemarket.service.facades.CategoriesFacade;

public class GetCategoryWithJobsImpl implements GetCategoryWithJobs {

    private CategoriesFacade facade;
    private long categoryId;

    public Category execute() {
        return getFacade().getCategory(categoryId);
    }

    public long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(long id) {
        categoryId = id;
    }

    public CategoriesFacade getFacade() {
        return facade;
    }

    public void setFacade(CategoriesFacade facade) {
        this.facade = facade;
    }

}
